package com.ysu.his.exception;

import com.ysu.his.vo.common.ResultCodeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
public class HISException extends RuntimeException
{
    private Integer code;

    private String message;

    private ResultCodeEnum resultCodeEnum;

    public HISException(ResultCodeEnum resultCodeEnum)
    {
        this.code = resultCodeEnum.getCode();
        this.message = resultCodeEnum.getMessage();
        this.resultCodeEnum = resultCodeEnum;
    }

}
